package ReaderAndWriter;

import java.io.*;

public class CopyJavaDemo {
    public static void main(String[] args) throws IOException {
        InputStreamReader isr = new InputStreamReader(new FileInputStream("funCode\\funCode.iml"));

        OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream("funCode\\funCode01.iml"));


        char[] chars = new char[1024];
        int len;
        while ((len = isr.read(chars)) != -1) {
            osw.write(chars,0,len);
        }

        isr.close();
        osw.close();

    }
}
